package com.market.service;

import com.market.dto.ShopCartDto;
import com.market.entity.ShopCart;

import java.util.List;

public interface ShopCartService {

    boolean addShopCartRecord(ShopCart shopCart); //往购物车中添加商品

    boolean deleteShopCartRecord(int buyerId,int goodsId);  //根据买家id和商品的id删除购物车的一条数据

    boolean addShopCartNums(int buyerId,int goodsId);  //增加商家在购物车中购买的商品的数量

    boolean reduceShopCartNums(int buyerId,int goodsId); //减少商家在购物车中购买的商品的数量

    List<ShopCartDto> findMyShopCart(int buyerId);   //查看我的购物车

    boolean updateShopCart(int nums,int buyerId,int goodsId); //更新购物车商品数量
}
